//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class TextBulletSizePoint : TextBulletSize
    {
        private double _value;

        public double Value
        {
            get { return _value; }
            set { _value = value; }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("buSzPts"))
            {
                Value = SerializationHelper.GetFontSize(c, "val");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("buSzPts"))
            {
                SerializationHelper.SetFontSize(c, "val", Value);
            }
        }
    }
}